﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVCPets.Helpers
{
  public class SessionHelperBase
  {
    protected static T GetValue<T>(string Value)
    {
      T ret = default(T);

      var foo = HttpContext.Current.Session[Value];

      if (foo != null) ret = (T)foo;      

      return ret;
    }

    protected static void SetValue(string ValueName, object Value)
    {
      HttpContext.Current.Session[ValueName] = Value;
    }
  }
}
